# coding: utf-8
'''

read, readline, readlines

read 读取整个文件
readline 读取文件一行, 使用生成器的方法
readlines 读取整个文件到迭代器供我们遍历
'''

f = open('26.py')
try:
	s = f.read()
	print type(s)
	f.close()
except:
	f.close()

f = open('26.py')
try:
	s = f.readline()
	print type(s)
	f.close()
except:
	f.close()

f = open('26.py')
try:
	s = f.readlines()
	print type(s)
	f.close()
except:
	f.close()